<!DOCTYPE html>
<html lang="zh">
    <head>
        <meta charset="utf-8" />

        <title>后台工具</title>

        <link href="css/bootstrap.min.css" rel="stylesheet">
        <link rel="stylesheet" href="css/common.css" />
        <link rel="stylesheet" href="css/index.css" />

    </head>

    <body>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <a class="brand" href="#">广告SDK<em class="f-fs14">&nbsp;&nbsp;1.2.1</em></a>
                    <div class="nav-collapse collapse navbar-responsive-collapse">
                        <ul class="nav pull-right">
                            <li class="divider-vertical"></li>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">admin <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li>
                                        <a href="#">退出</a>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div><!-- /.nav-collapse -->
                </div>
            </div><!-- /navbar-inner -->
        </div>

        <div id="container" class="container-fluid">
            <div class="row-fluid">

                <div class="span3">
                    <ul class="nav nav-pills nav-stacked">
                        <li class="active single">
                            <a href="#help">广告SDK管理</a>
                        </li>
                    </ul>
                </div><!-- span3 -->

                <div class="span9">
                    <a id="addAppButton" class="btn" role="button"> 添加app </a>
                    <button id="button2">
                    show
                    </button> 
                    <pre id="stats">当前共有0个app</pre>
                    <table id="appTable" class="table table-bordered table-hover" >
                        <colgroup>
                            <col width="8%">
                            <col width="20%">
                            <col width="10%">
                            <col width="15%">
                            <col width="17%">
                            <col width="30%">
                        </colgroup>
                        <thead>
                            <tr>
                                <th>序号</th>
                                <th>app名称</th>
                                <th>平台</th>
                                <th>管理员</th>
                                <th>管理员联系方式</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>

                        </tbody>
                    </table>
                </div>
            </div>

            <div class="modal hide fade" id="addAppModal">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h3>添加app</h3>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal">
                        <div class="control-group">
                            <label class="control-label" for="name"><font style="color: red;">*</font>app名称</label>
                            <div class="controls">
                                <input type="text" name="name">
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="description">app描述</label>
                            <div class="controls">
                                <textarea name="description"></textarea>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="platform"><font style="color: red;">*</font>所属平台</label>
                            <div class="controls">
                                <input type="radio" name="platform" value="ios" checked="" >
                                ios
                                <input type="radio" name="platform" value="android" style="margin-left:20px;">
                                android
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="appUrl"><font style="color: red;">*</font>app地址</label>
                            <div class="controls">
                                <input name="appUrl">
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="admin"><font style="color: red;">*</font>管理员名字</label>
                            <div class="controls">
                                <input name="admin">
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="adminContact"><font style="color: red;">*</font>联系方式</label>
                            <div class="controls">
                                <input name="adminContact">
                            </div>
                        </div>

                    </form>
                </div>
                <div class="modal-footer">
                    <a href="#" class="btn btn-primary">确定</a>
                    <a href="#" class="btn" data-dismiss="modal" aria-hidden="true">取消</a>
                </div>
            </div>
            <div class="modal hide fade" id="deleteConfirmModal">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                </div>
                <div class="modal-body">
                    是否删除
                </div>
                <div class="modal-footer">
                    <a href="#" class="btn btn-primary">确定</a>
                    <a href="#" class="btn" data-dismiss="modal" aria-hidden="true">取消</a>
                </div>
            </div>

        </div>

        <script src="js/jquery-2.0.0.min.js" ></script>
        <script src="js/underscore.js"></script>
        <script src="js/backbone.js"></script>
        <script src="js/bootstrap.min.js"></script>

        <script src="js/common.js"></script>
        <script src="js/index.js"></script>

        <script type="text/template" id="appTable_tr_template">
            <td><%= order %></td>
            <td><%= name %></td>
            <td><%= platform %></td>
            <td><%= admin %></td>
            <td><%= adminContact %></td>
            <td>
            <a class="btn manageAds">
            管理app内广告
            </a>
            <a class="btn delete">
            删除
            </a></td>
        </script>

        <script type="text/template" id="stats-template">
            当前共有<%= count %>个app
        </script>

    </body>

</html>